package com.fzk.blog.settings.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fzk.blog.bean.DicType;
import com.fzk.blog.bean.DicValue;
import com.fzk.blog.bean.vo.DicInfo;

import java.util.List;

/**
 * @author fzk
 * @date 2021-08-19 22:37
 */
public interface IDicService {
    List<DicInfo> getDicInfoList() throws JsonProcessingException;

    List<DicInfo> getDicInfoByTypeId(int dicTypeId);

    List<DicInfo> getDicInfoByTypeName(String dicTypeName);

    List<DicInfo> insertDicType(DicType dicType, int loginId);

    List<DicInfo> updateDicType(DicType dicType, int loginId);

    List<DicInfo> deleteDicType(int id, int loginId);

    List<DicInfo> insertDicValue(DicValue dicValue, int loginId);

    void updateDicValue(DicValue dicValue, int loginId);

    void deleteDicValue(int id, int loginId);

    List<DicType> getDicTypeList() throws JsonProcessingException;

    DicType getDicType(int typeId) throws JsonProcessingException;
}
